#include "servermonitor.h"
#include "cpu.h"
#include "disk.h"
#include "memory"

ServerMonitor::ServerMonitor()
{
}

QMultiMap<QString, QPair<QString, QString> > ServerMonitor::CollectPartsTogether(){
    QMultiMap<QString, QPair<QString, QString> > multiMap;
    multiMap.clear();

    CPU oCPU;
    Disk oDisk;
    Memory oMemory;

    // 百川终于到海
    oCPU.GetCPUInfo(&oCPU, &multiMap);
    oDisk.GetDiskInfo(&oDisk, &multiMap);
    oMemory.GetMemoryInfo(&oMemory, &multiMap);

    return multiMap;
}
